//
//  HTTPClient.h
//  PropertyManager
//
//  Created by TNG on 2018/8/31.
//  Copyright © 2018年 Tng. All rights reserved.
//

#import <Foundation/Foundation.h>

typedef void (^returnDic)(NSDictionary * dic);
typedef void (^sendFailMessage)(NSString * message,NSString * errorCode);

@interface HTTPClient : NSObject

+(HTTPClient *)shareClient;
//POST
-(void)requestWithPath:(NSString *)path AndParams:(NSDictionary *)params AndReturnBlock:(returnDic)block AndFailMessage:(sendFailMessage)failMessage;
//GET
-(void)requestWithPath:(NSString *)path AndReturnBlock:(returnDic)block AndFailMessage:(sendFailMessage)failMessage;

@end
